<?php
namespace app\modules\adminapi\controllers;

use app\models\UserLevel;

class ListlevelController extends \app\modules\adminapi\ForceLoginPure {

    public function run() {
        $model = new UserLevel();
        $ret = $model->getListByCondition('id,level_name,minexp,maxexp,level_num', '1=1');

        $this->ajaxReturn([
            'data' => $ret
        ]);
    }

}
